package cn.nebula.music.dao;

import java.util.Set;

import org.springframework.stereotype.Repository;

import cn.nebula.music.domain.User;

@Repository
public interface UserDAO {
	public Set<User> findAllUsers();

	public Set<User> findAllUsersOfBT();

	public Set<User> findAllUsersWP();

	public User findUserByUsername(String username);

	public User findUserByPhone(String phone);

	public User findUserByEmail(String email);
	
	public Set<User> findUsersByRole(Integer roleId);

	public User findUserById(Integer id);


	public Integer deleteUserById(Integer id);

	public Integer addUser(User user);

	public Integer updateUser(User user);

}
